<!--<?php
require_once template('header'); 
print <<<EOT
<!--右边开始-->
<div id="right">
	<form name="mvmmall" action="admincp.php?module=cycle&action=add" method="post" enctype="multipart/form-data">
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr><th>Flash 管理</th></tr>
  		<tr>
    		<td align="center">
			<!-- flash 开始 -->
			<div id="flash">
			<a target=_self href="javascript:goUrl()">
			<span class="f14b">
			<script type="text/javascript">
			var focus_width='$focus_width'
			var focus_height='$focus_height'
			var text_height='$text_height'
			var swf_height = '$swf_height'
			var pics='$pics'
			var links='$links'
			var texts='$texts'
			document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
			document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/banner/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
			document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
			document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
			document.write('<embed src="images/banner/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');
$(function(){			
$(".addimg").click(function(e){
$(this).parent("p").after($(".g_img:last").clone(true)); 
});
$(".delimg").click(function(e){
	if($('#gallery p').length>1) $(this).parent("p").remove(); 
});
});
			</script>
			</span>
			</a>
			</div>
			<!-- flash 结束 -->
			</td>
  		</tr>
	</table>
	<table cellpadding="0" cellspacing="1" class="list1">
	 	<tr><th colspan="4">Flash 编辑</th></tr>
     	<tr>
      		<td>Flash 大小</td>
      		<td><input name="focus_width" type="text" class="text" value="$focus_width"  size="5" maxlength="10" />*
			<input type="text" name="focus_height" class="text"  value="$focus_height" size="5" maxlength="10" /> <span class="cpsm">←(498px * 185px)</span></td>
      		<td>Flash 标题文本高度</td>
      		<td><input type="text" name="text_height" class="text"  value="$text_height" size="5" maxlength="10" /> <span class="cpsm">←标题文本显示高度,不填表示0.</span></td>
    	</tr> 
		<tr><td colspan="4">
<!--
EOT;
foreach ($photo as $val){
print <<<EOT
-->
			<div id="r$val[uid]" class="promotion">
				<p><a href="javascript:;" onclick="remove('$val[uid]','$val[del]');">[-]</a></p>
				<p><a href="$val[img]" target="_blank"><img src="$val[img]" width="125" height="46" /></a></p>
				<p>标题：<input type="text"  value="$val[title]" size="16" name="title$val[uid]" id="title$val[uid]" onkeyup="$('#temp').load('admincp.php?module=$module&action=edit&focus_width=$focus_width&focus_height=$focus_height&text_height=$text_height&uid=$val[uid]&title='+\$('#title$val[uid]').val())"; class="text" /></p>
				<p>链接：<input type="text"  value="$val[link]" size="16" name="link$val[uid]" id="link$val[uid]" onkeyup="$('#temp').load('admincp.php?module=$module&action=edit&focus_width=$focus_width&focus_height=$focus_height&text_height=$text_height&uid=$val[uid]&link='+\$('#link$val[uid]').val())"; class="text" /></p>
			</div>
<!--
EOT;
} print <<<EOT
-->
    	<!-- 图片列表 -->
		</td></tr>
		<tr><th colspan="4">上传轮转广告</th></tr>
		<tr>
			<td colspan="4"><div id="gallery"><p class="g_img"> 
				<a href="javascript:;" class='addimg'>[+]</a>标 题 <input type="text" name="title[]" size="15" class="text">&nbsp; &nbsp;
				链接<input type="text" name="link[]" size="15" class="text">&nbsp; &nbsp;
				图片<input type="file" name="gallery[]" size="15" class="text"><a href="javascript:;" class="delimg">[-]</a>
			</p></div></td>
		</tr>
	</table>
 	<!-- end -->
	<div id="tfoot">
		<input type="submit" name="Submit" value="&nbsp;$lang[submit]&nbsp;" onclick="" />
		<input type="reset" name="reset" value="&nbsp;$lang[reset]&nbsp;" />
	</div>
	</form>
</div>
<!--
EOT;
?>-->